package com.mb.app.service;

import com.baomidou.mybatisplus.service.IService;
import com.mb.app.domain.TbProductInfo;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author liliping
 * @since 2019-04-02
 */
public interface ITbProductInfoService extends IService<TbProductInfo> {

    /**
     * 分页查询
     * @param map
     * @return
     */
    public List<TbProductInfo> queryList(Map<String, Object> map);

    public int count(Map<String, Object> map);

    public int save(TbProductInfo tbProductInfo,String[] colorIds,String[] specsIds);

    public int remove(Long classId,Long productId);

    public TbProductInfo getDtl(Long productId);

    boolean productInfoNameExit(Map<String, Object> params);

    public int status(Long productId,Integer productStatus);

    public int update(TbProductInfo TbProductInfo,String[] colorIds,String[] specsIds);

}
